
import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import FastClick from 'fastclick'
import toast from 'components/common/toast/index.js'
import VueLazyLoad from 'vue-lazyload'
Vue.config.productionTip = false

Vue.prototype.$bus=new Vue()
/* eslint-disable no-new */
//注册组件，并将组件导入js文件中的对象中，通过调用js对象里方法实现操作
Vue.use(toast)
Vue.use(VueLazyLoad,{
  loading:require('./assets/img/common/placeholder.png')
})
//解决300ms延迟
FastClick.attach(document.body)
new Vue({
  render:h=>h(App),
  router,
  store,
}).$mount('#app')
